const mysql = require('mysql2/promise');

// 创建连接池（推荐使用池而不是单连接）
const pool = mysql.createPool({
    host: 'localhost',
    user: 'root',
    password: '5010',
    database: 'wms',
    waitForConnections: true,
    connectionLimit: 10,
    queueLimit: 0
});

module.exports = pool;
